outerHtml

public abstract String outerHtml()

Returns a string with the HTML serialization of this element and its descendants.

Since

7.1

Throws

when this instance is closed


public abstract boolean outerHtml(String html)

Replaces the element and all of its descendants with a new DOM tree constructed by parsing the given html.

Return

true when the HTML of the element was successfully replaced

Since

7.1

Parameters

html

a new HTML of this element

Throws

when this instance is closed